/
AfterOrEqual.php
38 lines (31 loc) · 978 Bytes
/
AfterOrEqual.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
declare(strict_types=1);
namespace Aeon\Symfony\AeonBundle\Validator\Constraints;
use Symfony\Component\Validator\Constraints\AbstractComparison;
final class AfterOrEqual extends AbstractComparison
{
public const BEFORE_ERROR = '1c6d2666-52d7-4131-bd11-3f90e2120c2d';
/**
* @var array<string, string>
*/
protected const ERROR_NAMES = [
self::BEFORE_ERROR => 'BEFORE_ERROR',
];
/**
* @var array<string, string>
*/
protected static $errorNames = [
self::BEFORE_ERROR => 'BEFORE_ERROR',
];
public function __construct(mixed $value = null, string $propertyPath = null, string $message = 'This value should be after or equal {{ compared_value }}.', array $groups = null, mixed $payload = null, array $options = [])
{
parent::__construct(
$value,
$propertyPath,
$message,
$groups,
$payload,
$options
);
}
}